<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
*{
	margin:0; padding:0; border:0;
}
</style>
<script type="text/javascript">
window.onload = function(){
	var url = window.location.href.split("?")[1];
	var img = document.getElementById("img");
	img.src = url;
	img.onload = function(){
		document.style.height = this.height + "px";
		this.onload = null;
	};
	img.ondblclick = function(){
		window.close();
	};
};
</script>
</head>
<body>
<img src="" id="img" alt="" title="双击图片关闭标签" />
</body>
</html>
